package gui.keyActions;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import desenhando.EstadoDesenhando;

public class AnimatePolygonalsAction extends AbstractAction {
	private EstadoDesenhando target;

	public AnimatePolygonalsAction(EstadoDesenhando target) {
		super();
		this.target = target;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		this.target.setAnimatedPolygonals(!this.target.isAnimatedPolygonals());
	}

	// GETTERS AND SETTERS
	public EstadoDesenhando getTarget() {
		return target;
	}

	public void setTarget(EstadoDesenhando target) {
		this.target = target;
	}

}
